/**
 * 客户订单管理
 */
export default {
  /** 查询订单列表 */
  'get /billing-api/a/orders': {
    code: 0,
    msg: 'ok',
    data: {
      total: 6,
      items: [
        {
          id: 1,
          tradeNo: new Date().getMilliseconds() + Math.random() * 1000,
          totalAmount: 120,
          product: '绘本一个月',
          status: 10,
          createdAt: '2018-05-12 12:12:12',
          paidAt: '2018-05-12 12:22:12',
          buyerName: '昵称',
        },
        {
          id: 5,
          tradeNo: new Date().getMilliseconds() + Math.random() * 1000,
          totalAmount: 120,
          product: '绘本一个月',
          status: 20,
          createdAt: '2018-05-12 12:12:12',
          paidAt: '2018-05-12 12:22:12',
          buyerName: '昵称',
        },
        {
          id: 6,
          tradeNo: new Date().getMilliseconds() + Math.random() * 1000,
          totalAmount: 120,
          product: '绘本一个月',
          status: 40,
          createdAt: '2018-05-12 12:12:12',
          paidAt: '2018-05-12 12:22:12',
          buyerName: '昵称',
        },
      ],
    },
  },
  /** 查询订单详情 */
  'get /billing-api/a/orders/:id': {
    code: 0,
    msg: 'ok',
    data: {
      id: 6,
      tradeNo: new Date().getMilliseconds() + Math.random() * 1000,
      totalAmount: 120,
      product: '绘本一个月',
      status: 10,
      buyerName: '客户昵称',
      createdAt: '2018-05-12 12:12:12',
      paidAt: '2018-05-12 12:22:12',
      levels: ['Level 1', 'Level 2', 'Level 3'],
    },
  },
  /** 订单退款 */
  'post /billing-api/a/orders/:id/refund': {
    code: Math.random() * 10 > 5 ? 0 : 400,
    msg: 'ok',
    data: '',
  },
};
